# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Joaquim Monteiro <joaquim.monteiro@protonmail.com>

_pyname=NSKeyedUnArchiver
pkgname=python-nskeyedunarchiver
pkgver=1.5
pkgrel=5
pkgdesc="Library for decoding Apple's text or binary plist files"
arch=(any)
url='https://github.com/avibrazil/NSKeyedUnArchiver'
license=('LGPL')
depends=('python')
makedepends=('python-'{build,installer,wheel}
             'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz")
sha512sums=('ecdf53bdcfff34366c4fb0d4e4ff45e765a7571374af803a1f9acf6c42fa5d300f00a7e58cb1380e1f5d1e1ad06696652225a6ae4fcfe9b6627f510b749f32e1')

build() {
  cd "${_pyname}-${pkgver}"
  python -m build -wn
}

package() {
  cd "${_pyname}-${pkgver}"
  python -m installer -d "$pkgdir" dist/*.whl
}

# vim: ts=2 sw=2 et:
